t=0:1:Tt;

pic_format='.png';

%% E

%% total
figure
plot(t, totalE,'r')

xlabel('time');
ylabel('totalE')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_totalE', pic_format))

%% done
figure
plot(t, doneE,'r')

xlabel('time');
ylabel('doneE')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_doneE', pic_format))

%% doing

figure
plot(t, doingE,'g')

xlabel('time');
ylabel('doingE')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_doingE', pic_format))


%% undone
figure
plot(t, totalE-doingE-doneE,'b') %undone

xlabel('time');
ylabel('undoneE')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_undoneE', pic_format))

%% P

%% done
figure
plot(t, doneP,'r') %doing

xlabel('time');
ylabel('doneP')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_doneP', pic_format))

%% doing

figure
plot(t, doingP,'g') %doing

xlabel('time');
ylabel('doingP')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_doingP', pic_format))

%% undone

undoneP=1-doingP-doneP;
undoneP(1)=0;

figure
plot(t, undoneP,'b') %undone

xlabel('time');
ylabel('undoneP')

% axis([0,DOF, 0, 0.1]) % 限定坐标显示范围
set(gcf,'Position',[50 50 400 300]); % 限定图片长宽尺寸
saveas(gcf,strcat(workname_path,'_undoneP', pic_format))

